package com.education.common.utils;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * http响应状态码
 * @author sj
 * @version
 */
@NoArgsConstructor
public class ResultCode {
    public static final int SUCCESS=1;//响应成功状态码
    public static final int FAIL=0;//响应成功状态码
    public static final String DEFAULT_SUCCESS_MESSAGE="操作成功";
    public static final String DEFAULT_FAIL_MESSAGE="操作失败";
    @Getter
    @Setter
    private int code=SUCCESS;
    @Getter
    @Setter
    private String message;
    public ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
